import type { IEditCouponData } from "@/api/modules/marketingTool"


export interface templateQueryReq {
  // 模板类型
  type?: number | string;
  // 模板子类型
  subType?: number | string;
  showCount?: number;
  currentPage?: number;
}

export interface templateSaveReq {
  //merchantId
  merchantId: number | string;
  //id
  id?: number | string;
  //排序号
  sorted?: number | undefined;
  //模板名
  name: string;
  //组件标识
  component?: string;
  // 状态(1启用，0禁用)
  status: number;
  // 封面效果图url
  cover?: string;
  // 模板具体配置信息
  templateConfig: string;
  // 模板子类型
  subType: number | string;
  // 模板类型
  type?: number | string;
  [propName: string]: any;
}

export interface templateDetailReq {
  // id
  id: number | string;
}

export interface templateDelReq{
  ids:Array<number|string>
}

export interface IPageArea {
  id: number;
  actId: number;
  pageFlag: string;
  name: string;
}

/**
 * activity/getActsByType 接口的返回
 */
export interface IActivityByType {
  id: number;
  name: string;
  canonicalActLink: string;
  actLink: string;
  pageAreas: IPageArea[]
}

/**
 * activity/prize/list 接口的返回
 */
export interface IActPrizeByPageArea {
  id: number;
  name: string;
}

export interface IActivityCouponDefineInfo extends IEditCouponData {
  discountRule: string;
  batchInfoEntities: {
    id: number;
  }[] | null;
}
